<template
  ><div class="admin-content">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="待审核" name="first">
        <el-table :data="waitFor" border style="width: 100%">
          <el-table-column fixed prop="name" label="姓名" width="100">
          </el-table-column>
          <el-table-column prop="sex" label="性别" width="120">
          </el-table-column>
          <el-table-column prop="examWay" label="考试方式" width="120">
          </el-table-column>
          <el-table-column prop="specialPlan" label="专项计划" width="120">
          </el-table-column>
          <el-table-column
            prop="wantDepartmentName"
            label="报考院系名称"
            width="200"
          >
          </el-table-column>
          <el-table-column prop="learnWay" label="学习方式" width="120">
          </el-table-column>
          <el-table-column label="操作" width="200">
            <template slot-scope="scope">
              <el-button
                @click="handleClick(scope.row)"
                type="text"
                size="small"
                >查看</el-button
              >
              <el-button type="text" size="small">编辑</el-button>
            </template>
          </el-table-column>
        </el-table></el-tab-pane
      >
      <el-tab-pane label="审核通过" name="second">审核通过</el-tab-pane>
      <el-tab-pane label="审核不通过" name="third">审核不通过</el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: "AdminContent",
  data() {
    return {
      activeName: "first",
      getUncheckedExamiminee:{},
      waitFor: [
        {
          name: "",
          sex: "",
          examWay: "",
          specialPlan: "",
          wantDepartmentName: "",
          learnWay: ""
        }
      ]
    };
  },

  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    getUncheckedExamiminee() {
      this.$axios
              .get("/commonManager/getUncheckedSchoolExaminee/请选择/0")
              .then(res => {
                console.log(res);
                this.waitFor.name = res.data;
              })
              .catch(err => {
                console.log(err);
              });
    }
  },
  mounted(){
    this.$axios
            .get("/commonManager/getUncheckedSchoolExaminee/请选择/0")
            .then(res => {
              console.log(res);
              this.waitFor.name = res.data;
            })
            .catch(err => {
              console.log(err);
            });
  }
};
</script>

<style scoped>
.admin-content {
  padding: 1em;
}
</style>
